home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-2.iso / Files II / Prog / B-C / CW TCL port package.sit / CW TCL port package / Art class projects / Art class.diff < prev   
Encoding:
Text File  |  1994-05-08  |  7.1 KB  |  325 lines

  1. rArt Class Headers
  2. fArtClassCmds.h
  3. i
  4. fCAboutBox.h
  5. x253878841,523732523
  6. c0,21
  7. aclass CAboutBox : public CDirector {    // •• CW TCL: changed struct to class
  8. apublic:                                    // •• CW TCL
  9. c23,38
  10. e
  11. fCArtClassApp.h
  12. x484941342,381310022
  13. c0,24
  14. aclass CArtClassApp : public CApplication {        // •• CW TCL: changed to class
  15. c33,33
  16. apublic:                                            // •• CW TCL
  17. c33,33
  18. c26,32
  19. a    virtual                ~CArtClassApp()                        // •• CW TCL: added destructor
  20. a                             { TCL_START_DESTRUCTOR }        // •• CW TCL
  21. c2,2
  22. c34,42
  23. e
  24. fCArtClassDoc.h
  25. x394806202,162890368
  26. c0,23
  27. aclass CArtClassDoc : public CDocument {        // •• CW TCL: changed to class declaration
  28. c27,27
  29. apublic:                                        // •• CW TCL
  30. c25,30
  31. a    virtual                ~CArtClassDoc() { TCL_START_DESTRUCTOR }        // •• CW TCL
  32. c31,44
  33. e
  34. fCCaption.h
  35. x410346203,455862479
  36. c0,21
  37. aclass CCaption : public CEditText {        // •• CW TCL: changed struct to class, public inheritance
  38. c25,25
  39. apublic:                                    // •• CW TCL
  40. c23,29
  41. c2,2
  42. a    virtual            ~CCaption() { TCL_START_DESTRUCTOR }        // •• CW TCL
  43. c34,34
  44. c31,37
  45. e
  46. fCClearTask.h
  47. x325196288,227422032
  48. c0,16
  49. aclass CClearTask : public CPaintTask {        // •• CW TCL: changed struct to class
  50. c20,20
  51. apublic:                                        // •• CW TCL
  52. c18,22
  53. a    virtual        ~CClearTask() { TCL_START_DESTRUCTOR }
  54. c23,27
  55. e
  56. fCDragger.h
  57. x178058063,6339682
  58. c0,21
  59. aclass CDragger : public CPaintTask {    // •• CW TCL
  60. apublic:                                    // •• CW TCL
  61. c23,33
  62. a    virtual                ~CDragger() { TCL_START_DESTRUCTOR }        // •• CW TCL
  63. c34,42
  64. e
  65. fCPaintPane.h
  66. x426889769,490392400
  67. c0,28
  68. aclass CPaintPane : public CBitMapPane {        // •• CW TCL: changed from struct to class
  69. c30,30
  70. apublic:                                        // •• CW TCL: added access control
  71. c31,39
  72. c43,43
  73. a    virtual            ~CPaintPane();        // •• CW TCL: added destructor
  74. c40,56
  75. e
  76. fCPaintTask.h
  77. x249267798,209453999
  78. c0,24
  79. aclass CPaintTask : public CMouseTask {        // •• CW TCL
  80. apublic:                                        // •• CW TCL
  81. c26,38
  82. e
  83. fCPatternsDir.h
  84. x246403847,272726416
  85. c0,22
  86. aclass CPatternsDir : public CTearOffMenu {        // •• CW TCL
  87. apublic:                                            // •• CW TCL
  88. c24,31
  89. a    virtual            ~CPatternsDir() { TCL_START_DESTRUCTOR }    // •• CW TCL
  90. c32,36
  91. e
  92. fCSelectionRect.h
  93. x522509449,70438401
  94. c0,16
  95. aclass CSelectionRect : public CPaintTask {        // •• CW TCL: changed struct to class
  96. apublic:                                            // •• CW TCL
  97. c18,22
  98. a    virtual        ~CSelectionRect() { TCL_START_DESTRUCTOR }        // •• CW TCL
  99. c23,26
  100. e
  101. fCToolPens.h
  102. x424483811,468308104
  103. c0,24
  104. aclass CToolPens : public CPaintTask {    // •• CW TCL
  105. apublic:                                    // •• CW TCL
  106. c26,31
  107. a    virtual            ~CToolPens() { TCL_START_DESTRUCTOR }    // •• CW TCL
  108. c32,61
  109. e
  110. fCToolsDir.h
  111. x181379189,262412151
  112. c0,21
  113. aclass CToolsDir : public CTearOffMenu {        // •• CW TCL: changed struct to class
  114. apublic:                                        // •• CW TCL
  115. c23,28
  116. a    virtual            ~CToolsDir() { TCL_START_DESTRUCTOR }        // •• CW TCL
  117. c29,32
  118. e
  119. fCToolShapes.h
  120. x3334544,55390425
  121. c0,24
  122. aclass CToolShapes : public CPaintTask {        // •• CW TCL: changed to class with public inheritance
  123. c27,27
  124. apublic:                                        // •• CW TCL
  125. c26,30
  126. a    virtual            ~CToolShapes() { TCL_START_DESTRUCTOR }        // •• CW TCL
  127. c31,103
  128. e
  129. fCToolText.h
  130. x162940827,51053852
  131. c0,22
  132. aclass CToolText : public CPaintTask {        // •• CW TCL
  133. apublic:                                        // •• CW TCL
  134. c24,25
  135. a    virtual            ~CToolText() { TCL_START_DESTRUCTOR }        // •• CW TCL
  136. c26,28
  137. e
  138. o
  139. rArt Class Sources
  140. fArt Class.cp
  141. i
  142. fCAboutBox.cp
  143. x431596759,470151938
  144. c0,27
  145. a//#include <LoMem.h>                    // •• CW TCL
  146. c29,56
  147. a        itsWindow = new CWindow(WIND_ABOUT, TRUE, this);
  148. c58,75
  149. c77,77
  150. a    TCL_END_CONSTRUCTOR                        // •• CW TCL
  151. c76,86
  152. a    TCL_START_DESTRUCTOR                // •• CW TCL
  153. c87,94
  154. a//    CDirector::~CDirector();            // •• CW TCL: automatically done
  155. a//    CurDeactive = NULL;        // TCL 1.1.3 3/11/93 MER; stray pending deactivate event
  156. a    LMSetCurDeactive(NULL);                // •• CW TCL: use proper calls
  157. c97,240
  158. e
  159. fCArtClassApp.cp
  160. x261940935,440818793
  161. c0,75
  162. aCArtClassApp::CArtClassApp() : CApplication(kExtraMasters, kRainyDayFund, 
  163. a                    kCriticalBalance, kToolboxBalance)
  164. a                                            // •• CW TCL: use constructor chain
  165. c77,81
  166. c84,84
  167. a    MakeHelpers();                        // •• CW TCL: need to help the helpers
  168. a//    CApplication::IApplication( kExtraMasters, kRainyDayFund, 
  169. a//                    kCriticalBalance, kToolboxBalance);
  170. c84,86
  171. a    gScratchPad = new CBitMap(PNTG_WIDTH, PNTG_HEIGHT, TRUE);
  172. c88,117
  173. a    TCL_END_CONSTRUCTOR;                // •• CW TCL
  174. c117,147
  175. a    itsToolsDir = new CToolsDir(this);         // director for a tear-off tool menu
  176. a    itsPatsDir  = new CPatternsDir(this);    // tear-off Patterns menu
  177. c150,361
  178. e
  179. fCArtClassDoc.cp
  180. x443742481,354737764
  181. c0,60
  182. c72,72
  183. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  184. c88,88
  185. c63,63
  186. c66,66
  187. c91,91
  188. c65,196
  189. a        theFile = new CPNTGFile;            /* make a File object and read the    */
  190. c198,245
  191. a        itsWindow = new CWindow(WINDmyDoc, FALSE, this);    /* create window object */
  192. c247,251
  193. a        theScrollPane = new CScrollPane;
  194. c253,323
  195. a    itsFile = new CPNTGFile();            /* make a new file object with the    */
  196. c325,428
  197. e
  198. fCCaption.cp
  199. x482537360,25992725
  200. c0,19
  201. aTEClickLoopUPP TEClickLoopPtr = NewTEClickLoopProc(TEClickLoop);
  202. a                                            // •• CW TCL
  203. c20,50
  204. a//     SetClikLoop((TEClickLoopUPP) TEClickLoop, macTE);    /* Use dummy click loop to disable    */
  205. a//                                        /*   autoscrolling implemented in    */
  206. a//                                        /*   an EditText pane                */
  207. c58,58
  208. a    TESetClickLoop(TEClickLoopPtr, macTE);        // •• CW TCL: updated for proper UPP call
  209. c88,88
  210. c54,56
  211. c88,88
  212. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  213. c58,58
  214. c57,202
  215. e
  216. fCClearTask.cp
  217. x407177523,453184411
  218. c0,31
  219. a    TCL_END_CONSTRUCTOR
  220. c32,104
  221. e
  222. fCDragger.cp
  223. x430041508,305973716
  224. c0,41
  225. a    TCL_END_CONSTRUCTOR                        // •• CW TCL
  226. c42,83
  227. a//            gApplication->undone = FALSE;        // •• CW TCL: not sure about this
  228. c85,317
  229. e
  230. fCPaintPane.cp
  231. x502571219,316315032
  232. c0,99
  233. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  234. c100,101
  235. aCPaintPane::~CPaintPane()                // •• CW TCL: added destructor
  236. c103,103
  237. a    TCL_START_DESTRUCTOR
  238. a    ForgetObject(itsCaption);            // •• CW TCL: was left dangling before
  239. c123,123
  240. c126,126
  241. c102,321
  242. a        SetCursor(&qd.arrow);            /* Mouse is outside the drawing        */
  243. a                                                // •• CW TCL: need to reference qd globals
  244. c323,626
  245. e
  246. fCPaintTask.cp
  247. x514772801,404289762
  248. c0,34
  249. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  250. c35,43
  251. aCPaintTask::~CPaintTask()
  252. c45,45
  253. a    TCL_START_DESTRUCTOR                // •• CW TCL
  254. c46,53
  255. a//    CMouseTask::~CMouseTask();                /* Pass message on to superclass    */
  256. a                                    // •• CW TCL: done automatically
  257. c55,117
  258. e
  259. fCPatternsDir.cp
  260. x345871931,427888174
  261. c0,71
  262. c74,74
  263. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  264. c93,96
  265. c76,118
  266. e
  267. fCSelectionRect.cp
  268. x111367689,315266498
  269. c0,31
  270. c43,43
  271. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  272. c90,93
  273. c36,50
  274. a    CopyRgn(qd.thePort->visRgn, oldVis);    /*     case we autoscroll                  */
  275. a                                        // •• CW TCL: need to ref QD globals
  276. c52,85
  277. a        PenPat(&qd.gray);                /*   Xor mode so pixels are flipped    */
  278. a                                        // •• CW TCL: need to ref QD globals
  279. c87,112
  280. e
  281. fCToolPens.cp
  282. x246605043,366127916
  283. c0,38
  284. c51,51
  285. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  286. c58,61
  287. c43,315
  288. a        BlockMove(&qd.white, &thePenPat, 8);
  289. a                                        // •• CW TCL: need to ref QD globals
  290. c317,320
  291. a        BlockMove(&qd.black, &thePenPat, 8);
  292. a                                        // •• CW TCL: need to ref QD globals
  293. c322,414
  294. e
  295. fCToolsDir.cp
  296. x427088337,509104581
  297. c0,74
  298. c77,77
  299. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  300. c77,77
  301. c96,99
  302. c79,110
  303. e
  304. fCToolShapes.cp
  305. x493347817,38493024
  306. c0,43
  307. c56,56
  308. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  309. c60,63
  310. c48,371
  311. e
  312. fCToolText.cp
  313. x494202685,39391924
  314. c0,32
  315. c44,44
  316. a    TCL_END_CONSTRUCTOR                    // •• CW TCL
  317. c46,46
  318. c35,35
  319. c38,38
  320. c0,0
  321. c37,46
  322. e
  323. o
  324. o
  325.